package admins

import (
	"go_auth/ext/settings"
	"go_auth/models/admin"
	"go_auth/utils/commons"
)

func AddBlackList(key, data string, t int) bool {
	return admin.AddBlackList(commons.StringJoin([]string{settings.PrefixBlack, key}), data, t, settings.RDb0)
}

func DeleteBlackList(key string) {
	admin.DeleteBlackList(commons.StringJoin([]string{settings.PrefixBlack, key}), settings.RDb0)
}
